package threading;

/**
 * @author krystal
 * @date 2022/11/23 21:22
 */
public class Demo15 {
    static class Counter{
        public synchronized void increase(){
            synchronized (this){

            }
        }
    }

    public static void main(String[] args) {
        threading.Counter counter=new threading.Counter();
        Thread t=new Thread(){
            @Override
            public void run() {
                counter.increase();
            }
        };
        t.start();
    }
}
